<?php
echo '<pre>';
try
{
	$pPDO = new PDO ('mysql:host=localhost;dbname=cms', 'user_smc', 'h00g1@nd');
	$pPDO -> setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 

	//$sQuery = "DESCRIBE inschrijven;";
	$sQuery = "SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'cms' AND TABLE_NAME = 'inschrijven';";
	$pdoStmt = $pPDO -> prepare ($sQuery);
	$pdoStmt -> execute ();
	$aInfo = $pdoStmt -> fetchAll (PDO::FETCH_ASSOC);
	
	print_r ($aInfo);
}
catch (PDOException $e)
{

}
echo '</pre>';
die();
include ('includes/index.php');
include ('functions/convertTableToForm.php');
include ('functions/print_vars.php');
phpinfo ();

/* if($_SERVER['REQUEST_METHOD'] == 'POST' && count ($_POST) == 2)
{
	convertTableToForm ('user', 'form', 'gebruikersnaam');
}
elseif($_SERVER['REQUEST_METHOD'] == 'POST')
{
	convertTableToForm ('user', 'submit');
}
else
{
	convertTableToForm ('user', 'options', 'gebruikersnaam');
} */